<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    

    <div id="hello1">
        <!-- 官方推荐写法 数组语法很少用 -->
        <h2 :style='[aobject,bobject]'>{{message}}</h2>
    </div>
    <script src="../vue.js"></script>
    <script>
        const vue02 = new Vue({
            el: '#hello1',
            data: {
                message: 'hello vuejs',
                aobject:{fontSize:'50px'},
                bobject:{backgroundColor:"red"},
            }
        })
    </script>
</body>

</html>